<?php
namespace ChannelThrift\Service;

use Base\BaseService;

class DealerLogService extends BaseService {
    Protected $autoCheckFields = false;

    /**
     * 新增竞拍出价记录
     * @param $data
     * @return bool|mixed
     */
    public function InsertDealerLog($data)
    {
        $log =  D("ChannelThrift/Aums/DealerLog")->add($data);
        return $log;
    }

    /** 查询保证金使用记录
     * @param $where
     * @param int $page
     * @param int $pageSize
     * @return mixed
     */
    public function SelectDealerLog($where,$page=1,$pageSize=20){
       $log =  M('DealerLog')->where($where)->limit($page,$pageSize)->select();
     //   $log  = D("ChannelThrift/Aums/DealerLog")->where($where)->limit($page,$pageSize)->select();
        return $log;
    }


}
